@page "/admin/logout/"
@inject HttpClient _http
@inject NavigationManager _navigationManager
@inject IStringLocalizer<Resource> _localizer

<PageTitle Title="@_localizer["logout"]" />

@code{
    protected override async Task OnInitializedAsync()
    {
        await _http.GetFromJsonAsync<bool>("api/author/logout");
        _navigationManager.NavigateTo(_navigationManager.BaseUri, true);
    }
}
